package com.lebang.domain;

import com.lebang.model.TzshModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * tb_task_shanhu_record
 * @author 
 */
@Data
@ApiModel("")
public class TbTaskShanhuRecord implements Serializable {
    public TbTaskShanhuRecord() {

    }

    /**
     * 自增id
     */
    @ApiModelProperty("自增id")
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private LocalDateTime modifyTime;

    /**
     * 是否删除
     */
    @ApiModelProperty("是否删除")
    private Integer hasDeleted;

    /**
     * 任务id
     */
    @ApiModelProperty("任务id")
    private String taskId;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    private String orderId;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    private String taskDesc;

    /**
     * 金币数量
     */
    @ApiModelProperty("金币数量")
    private String coinNum;

    /**
     * 时间戳
     */
    @ApiModelProperty("时间戳")
    private Long finishTimestamp;

    private static final long serialVersionUID = 1L;


    public TbTaskShanhuRecord(TzshModel next) {

        this.createTime = LocalDateTime.now();
        this.modifyTime =LocalDateTime.now();
        this.hasDeleted = 0;
        this.taskId = next.getTask_id();
        this.orderId = next.getOrder_id();
        this.taskDesc = next.getTask_desc();
        this.coinNum = next.getCoin_num();
        this.finishTimestamp = next.getFinish_timestamp();
    }
}